import pygame.display as pdis
from pygame import Surface

class ZClass(object):
    def __init__(self):
        self.screen = pdis.get_surface()
        self.image = Surface([100,100])
        self.rect = self.image.get_rect()
        self.isRunning = True

    def start(self):
        self.isRunning = True

    def stop(self):
        self.isRunning = False

    def _getpos(self):
        return self.rect.topleft

    def _setpos(self, pos):
        self.rect.topleft = pos

    _pos = property(_getpos, _setpos)

    def _getsize(self):
        return self.rect.size

    def _setsize(self, size):
        self.rect.size = size

    _size = property(_getsize, _setsize)